package com.hspedu.set_;

/**
 * @author 谷其昊
 * @version 1.0
 * @date 2022/2/7
 * @time 22:19
 */
public class TestArrayNode {
    public static void main(String[] args) {
        Node[] table  = new Node[16];

        table[2] = new Node("jack",null);
        table[2].next = new Node("lucy",null);
    }
}

class Node{
    public Object item;
    public Node next;

    @Override
    public String toString() {
        return "Node{" +
                "item=" + item +
                ", next=" + next +
                '}';
    }

    public Node(Object item, Node next) {
        this.item = item;
        this.next = next;
    }
}
